<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>提示-浮生若梦</title>
    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"
          type="text/css">
    <style type="text/css">
        body {
            font-size: 10pt;
            color: #404040;
            font-family: SimSun;
        }

        .divBody {
            margin-left: 20%;
        }

        .divTitle {
            text-align:left;
            width: 900px;
            height: 25px;
            line-height: 25px;
            background-color: #999898;
            border: 5px solid #999898;
        }
        .divContent {
            width: 900px;
            height: 230px;
            border: 5px solid #999898;
            margin-right:20px;
            margin-bottom:20px;
        }
        .spanTitle {
            margin-top: 10px;
            margin-left:10px;
            height:25px;
            font-weight: 900;
        }
        .a{
            color: #999898;
        }
        a:hover{
            text-decoration: none;
        }
    </style>

</head>

<body>
<div th:replace="part/nav :: nav"></div>
<div class="divBody" style="padding-top: 3%">
    <div class="divTitle">
        <span class="spanTitle" th:text="${title}">标题</span>
    </div>
    <div class="divContent">
        <div style="margin: 20px;">
            <img th:if="${code eq 'success'}" style="float: left; margin-right: 30px;" src="img/duihao.jpg" width="150"/>
            <img th:if="${code eq 'error'}" style="float: left; margin-right: 30px;" src="img/error.png" width="150"/>
            <span style="font-size: 30px; color: black; font-weight: 900;margin-left: 15%;" th:text="${msg}">消息</span>
            <br/>
            <br/>
            <br/>
            <br/>
            <span style="margin-left: 50px;"><a target="_top" class="btn" onclick="skip('/login.html')">登录</a></span>
            <span style="margin-left: 50px;"><a target="_top" class="btn" href="/">主页</a></span>
            <span style="margin-left: 50px;"><a target="_top" class="btn" onclick="back()">返回</a></span>
        </div>
    </div>
</div>

<script>
    function skip(jhref) {
        window.location.href = jhref;
    }
    function back() {
        window.history.back();
    }
</script>
</body>
</html>